home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / co102.zip / BBSLIST.SOU next >
Text File  |  1990-08-17  |  8KB  |  272 lines

  1. .(  Step-by-step creation of a CROSSOVER script file
  2. .(  ------------------------------------------------
  3. .(
  4. .(  Ok, you've read CO.DOC and STILL can't figure it out.  Let's take a
  5. .(  door idea and create it from scratch.  Here goes.
  6. .(
  7. .(  Let's make a BBS information door.  One that lets folks list the details
  8. .(  about their favorite BBS.
  9. .(
  10. .(  First you will need a nice opening screen.  Use TheDraw or some other
  11. .(  screen creation utility to make up something nice if your users are
  12. .(  primarily MS-DOS users, otherwise avoid characters above ASCII 128.
  13. .(
  14.  
  15.   +-------------------------------------------------------------------------+
  16.   |                                                                         |
  17.   |                          <<< BBS DATA BASE  >>>                         |
  18.   |                                                                         |
  19.   |  This door permits you to post or read posted information about other   |
  20.   |  bulletin boards.                                                       |
  21.   |                                                                         |
  22.   +-------------------------------------------------------------------------+
  23.  
  24. .(  Not much, I admit, but it will serve our purpose.  Now, to give folks a
  25. .(  chance to read the title screen, you need to pause the display with a
  26. .(  space-bar command.
  27.  
  28. .SB
  29.  
  30. .(  Next, a marker to define the main menu location...
  31. .@T
  32.  
  33. .(  Now for a main menu to let them choose what they want to do:
  34.  
  35.                          [ MAIN MENU ]
  36.  
  37.                   [A] Add a BBS to the listing
  38.                   [R] Read the listings
  39.                   [Q] Quit
  40.  
  41.                        Your selection:
  42. .(
  43. .( So much for the extensive menu full of options.  Now to get their choice
  44. .( you need a multiple-choice command.
  45. .(
  46. .[ARQ]
  47.  
  48. .( First, let's consider what happens if they decide to quit.  The bashful
  49. .( sysop will press the "Q" key to quit.  The system will then branch forward
  50. .( looking for a .@Q marker in the left margin.  If we avoid using a .@Q from
  51. .( this point forward, the system will drop through the end of the file,
  52. .( never finding the marker, returning control to the BBS and closing the
  53. .( door.  So much for that choice.  It's handled by simply ignoring it.
  54. .(
  55. .( The "R" choice will be handled a long way down the line...don't forget
  56. .( it though...
  57. .(
  58. .( Now let's let them add their information.  First we need a marker for
  59. .( the system to find.
  60. .(
  61. .@A
  62.  
  63. .( Now that we've found the point to start entering information, we need
  64. .( to decide what information we want them to be permitted to enter and
  65. .( what format we want it in.
  66. .(
  67. .(  How about something like this:
  68. .(
  69. .(  ========================================================================
  70. .(  BBS NAME: Bubba's BBS and All-Night Livery
  71. .(  PHONE: (800)-555-1212    SYSOP: Bubba Schwartz
  72. .(  LOCATION: Mule Town, Ohio    SYSTEM SIZE: 5 Megs.
  73. .(  SUPPORT FOR: Apple, C=64/Amiga, Timex-Sinclair, TI-99/4a, Adam
  74. .(  COMMENTS:
  75. .(  Downloads on first visit. Certified vet on call.  Petting zoo door.
  76. .(  Supports every protocol from ASCII-7 to Zmodem. C'mon down, ya hear?
  77. .(  ========================================================================
  78. .(  [N]ext listing  [Q]uit
  79. .(
  80. .(  So, the first thing you need will be the divider bars:
  81. .(
  82. ." ========================================================================
  83. .(  Finish the line with a carriage return...
  84. .CR
  85. .(  Next comes the label for the first item of data...
  86. ." BBS NAME:_
  87. .(
  88. .(  Now get the data input from the user. Let's limit them to 60 characters.
  89. .(
  90. .(  First, display a prompt...
  91.  
  92. BBS name:
  93. .(
  94. .(  Then get the data...
  95. .$60
  96. .(
  97. .(  Terminate it with a carriage return.
  98. .CR
  99. .(  We need the phone number.  Can't call unless we get that item!
  100. .(  First the label...
  101. ." PHONE:_
  102. .(
  103. .(  Then the prompt...
  104.  
  105. Please enter the telephone number (include area code if not 614).
  106.  
  107. Phone:
  108. .(
  109. .( and get the data...
  110. .(
  111. .$20
  112. .(
  113. .(  On the same line, we want the sysop's name...
  114. .(
  115. ."     SYSOP:_
  116.  
  117. Enter sysop's name if known:
  118. .(
  119. .( 35 characters should be enough...
  120. .(
  121. .$35
  122. .(
  123. .( And follow up with another carriage return.
  124. .(
  125. .CR
  126. .(
  127. .(  Same stuff goes for the location...
  128. .(
  129. ." LOCATION:_
  130.  
  131. Where is the BBS located? (City, State):
  132. .$35
  133.  
  134. .( And the system size...
  135.  
  136. ."    SYSTEM SIZE:_
  137. How large is your system storage?:
  138. .$10
  139.  
  140. .( and another carriage return...
  141.  
  142. .CR
  143.  
  144. .( Now for a little bit of fancy stuff.
  145. .( We want to let them tell what kind of computers it supports...
  146. .( First the label...
  147. ." SUPPORT FOR:
  148. .(
  149. .( Now a prompt...
  150. .(
  151. Which of these computers do you support?
  152. .( Before we list them, insert a marker...we'll see what it's for later.
  153. .@B
  154. .(  Now show the option list...
  155.  
  156.    [1] IBM & compatibles
  157.    [2] Apple IIe/c/GS
  158.    [3] Macintosh/Lisa
  159.    [4] Commodore/Amiga
  160.    [5] Other
  161.  
  162. .( and get their first choice...
  163.        Select:
  164. .[12345]
  165. .( now provide a place for each selection to be processed.  Let's start
  166. .( with the obvious #1.
  167. .@1
  168. .(Enter it into the file...
  169. ." IBM
  170. .( and give the user some visual feedback...
  171.  
  172. IBM
  173.  
  174. .( then branch over the other selections...
  175. .>C
  176. .( Do the same for the other selections
  177. .@2
  178. ." Apple II
  179.  
  180. Apple II
  181.  
  182. .>C
  183. .@3
  184. ." Macintosh/Lisa
  185.  
  186. Mac/Lisa
  187.  
  188. .>C
  189. .@4
  190. ." C=64/Amiga
  191.  
  192. C=64/Amiga
  193.  
  194. .>C
  195. .@5
  196.  
  197. .( "other" means he needs to ENTER what it is...
  198.  
  199. Please specify:
  200. .( Add a leading space...
  201. ."_
  202. .$15
  203.  
  204. .( Last option, no need to branch to .@C because we're there already...
  205. .@C
  206. .( now let's give them the option to enter another brand if the BBS supports
  207. .( more than one type of computer.
  208.  
  209. .?DDoes it support other makes?
  210. .",
  211. .<B
  212. .( if not then the file branches to .@D, otherwise it drops thru and
  213. .( a separating comma is added before the .<B command sends them back
  214. .( to the computer type menu.
  215.  
  216. .@D
  217. .( Now that we're out of the loop, terminate the line with a carriage
  218. .( return
  219. .CR
  220. .( Now to let them add their own comments.
  221. .( First a label...
  222. ." COMMENTS:
  223. .CR
  224. .( And then the chance to enter 2 lines of text.
  225. .UT2
  226. .( finish off the listing with another divider bar
  227. ." ========================================================================
  228. .(  and a carriage return...
  229. .CR
  230. .(  Be polite and say thanks...
  231.  
  232.     Thanks for entering your information!
  233.     Please note that your information will not be posted until you close
  234.     this door.
  235.  
  236. .(  Now to add some menus to let the users scan through the listings.
  237. .(  listings.
  238. .(  First the prompt.
  239. ." [N]ext listing  [Q]uit
  240. .CR
  241. .(
  242. .(  Then we have to add the command to get their input...
  243. .".[NQ]
  244. .CR
  245. .(  And the marker for the top of the next entry...
  246. .".@N
  247. .CR
  248. .(
  249. .(  Now go back to the top menu...
  250. .<T
  251. .(
  252. .(  Finally, we need to add a .@R to handle the "R" selection way back
  253. .(  there at the first menu.  This is the point at where the BBS entries
  254. .(  will be appended, so this is where they will want to start reading...
  255. .@R
  256. .(
  257. .(  That's about it...try it.  --Alan Graff
  258.  
  259.  
  260.  ========================================================================
  261.  BBS NAME: Cross Connect
  262.  PHONE: (614)776-7136     SYSOP: Alan Graff
  263.  LOCATION: Wheelersburg, OH    SYSTEM SIZE: 20 Meg.
  264.  SUPPORT FOR: IBM, Apple II
  265.  COMMENTS:
  266.  Support board for Cross Connect Software.  Also lots of QuickBBS and
  267.  Remote Access files. Some game doors.  Sysop writes his own doors.
  268.  ========================================================================
  269.  [N]ext listing  [Q]uit
  270. .[NQ]
  271. .@N
  272.